package essential.ch3;

/**
 * @Date 2021/10/23
 * @Created by Jonathan
 */
public class StringTest {
    public static void main(String[] args) {
        String s1 = new String("abc");
        String s2 = new String("abc");
        String s3 = "abc";
        String s4 = "abc";
        System.out.printf("s1 == s2 : %s\n", s1 == s2);
        System.out.printf("s3 == s4 : %s\n", s3 == s4);
    }
}
